import { defineStore } from 'pinia'

interface DeviceInfoItem {
  [key: string]: string
}

interface DeviceInfo {
  deviceInfo: DeviceInfoItem
}

export const useDeviceInfoStore = defineStore('deviceInfo', {
  state: (): DeviceInfo => ({
    deviceInfo: {}
  }),
  actions: {
    updateData(data) {
      Object.assign(this.deviceInfo, data)
    }
  }
})
